

package com.hazelcast.client;

import com.hazelcast.client.config.RoutingMode;
import com.hazelcast.client.config.RoutingStrategy;
import com.hazelcast.core.HazelcastException;

/**
 * An UnsupportedRoutingModeException is thrown when a Hazelcast Client
 * is configured with a {@link RoutingMode} that is not supported by the cluster.
 * <p>
 * For example, a client configured with routing mode:
 * {@link RoutingMode#MULTI_MEMBER}
 * and RoutingStrategy
 * {@link RoutingStrategy#PARTITION_GROUPS}
 * will be unable to connect to a cluster that is not correctly licensed
 * to send partition group info.
 */
public class UnsupportedRoutingModeException extends HazelcastException {

    /**
     * Creates an UnsupportedRoutingModeException with the given message.
     *
     * @param message the message for the exception
     */
    public UnsupportedRoutingModeException(String message) {
        super(message);
    }
}
